#!/bin/bash
TMPFILE=/tmp/media_server.sh.tmp
if [ -e $TMPFILE ]; then
   echo "Other instance is running!"
   exit 0
else
   touch $TMPFILE
   chmod 600 $TMPFILE
fi
trap "rm -f ${TMPFILE}; exit" 0 1 2 3 9 15
ulimit -n 20480
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:./install/lib/
while [ true ]; do
nohup  ./umMediaServer
#nohup  ./umMediaServer-bak &
#gdb ./umMediaServer
#./umMediaServer &
done
